package com.service;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.dao.LocationMapper;
import com.entity.Location;
@Service
public class LocationService {
	@Resource
	LocationMapper locationMapper;
	
	public List<Location> selectAll(){
		return locationMapper.selectAll();
	}
	
	public List<Location> selectLike(String address){
		return locationMapper.selectLike(address);
	}
	
	public Location messagepush(String address){
		return locationMapper.messagepush(address);
	}
	
	public List<Location> showlocation(){
		return locationMapper.showlocation();
	}
	
	public Location selectOne(String id){
		return locationMapper.selectOne(id);
	}
	
	public int updatelocation(Location location){
		return locationMapper.updatelocation(location);
	}
}
